import {sytRequest} from "@/request";
// GET /admin/hosp/hospitalSet/{page}/{limit}
// 获取分页列表
export const getHospitalSet = (page:number,limit:number)=>{
    return sytRequest.get(`/admin/hosp/hospitalSet/${page}/${limit}`)
}

// /admin/hosp/hospitalSet/lock/{id}/{status}
// 锁定
export const getHospitalSetLockId = (id:number,status:number)=>{
    status = status === 0 ? 1:0;
    return sytRequest.get(`/admin/hosp/hospitalSet/lock/${id}/${status}`)
}

// POST /admin/hosp/hospitalSet/save
// 新增医院设置
export const postHospitalSet = (body:any)=>{
    return sytRequest.post('/admin/hosp/hospitalSet/save',body);
}

// PUT /admin/hosp/hospitalSet/update
// 修改医院设置
export const putHospitalSet  = (body:any)=>{
    return sytRequest.put(`/admin/hosp/hospitalSet/update`,body)
}

// /admin/hosp/hospitalSet/remove/{id}
// 删除医院设置
export const deleteHospitalSetById = (id:number)=>{
    return sytRequest.delete(`/admin/hosp/hospitalSet/remove/${id}`)
}
